package adapter;

/**
 * @author wangxun
 * @version 1.0
 * @description: 翻译适配器
 * @date 2020/11/17 12:08 下午
 */
public class TranslateAdapter implements USBasketBallPlayer{
    private ChinaBasketBallPlayer player;

    public TranslateAdapter(ChinaBasketBallPlayer player) {
        this.player = player;
    }


    @Override
    public void attack() {
        player.进攻();
    }

    @Override
    public void defensive() {
        player.防守();
    }

    @Override
    public void rebound() {
        player.篮板();
    }
}
